package com.api.shopapi.service.impl;

import com.api.shopapi.entity.NursingItem;
import com.api.shopapi.entity.NursingLevelItemRel;
import com.api.shopapi.mapper.NursingItemMapper;
import com.api.shopapi.mapper.NursingLevelItemRelMapper;
import com.api.shopapi.service.NursingItemService;
import com.api.shopapi.service.NursingLevelItemRelService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("NursingLevelItemRelServiceImplOne")
public class NursingLevelItemRelServiceImpl implements NursingLevelItemRelService {

    @Autowired
    private NursingLevelItemRelMapper nursingLevelItemRelMapper;


    @Override
    public int insert(NursingLevelItemRel nursingLevelItemRel) {
        return nursingLevelItemRelMapper.insert(nursingLevelItemRel);
    }

    @Override
    public int delByNursingLevelCode(String nursingLevelCode) {
        return nursingLevelItemRelMapper.delByNursingLevelCode(nursingLevelCode);
    }

    @Override
    public List<NursingLevelItemRel> getByNursingLevelCode(String nursingLevelCode) {
        return nursingLevelItemRelMapper.getByNursingLevelCode(nursingLevelCode);
    }
}
